import axios from 'axios'

// 获取薪资列表
export const getSalaryList = (params) => {
    return axios.get('/api/salaries', { params })
}

// 添加工资记录
export const addSalary = (data) => {
    return axios.post('/api/salaries', data)
}

// 获取工资详情
export const getSalaryDetail = (id) => {
    return axios.get(`/api/salaries/${id}`)
}

// 更新工资信息
export const updateSalary = (data) => {
    return axios.put(`/api/salaries/${data.id}`, data)
}